package com.sky.financelake.ui.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatTextView;

import com.sky.financelake.base.BaseF;
import com.sky.financelake.databinding.FragmentMyBinding;
import com.sky.financelake.ui.activity.StockToolA;

import dagger.hilt.android.AndroidEntryPoint;

@AndroidEntryPoint
public class MyF extends BaseF {


    private FragmentMyBinding binding;

    public static class SingleHolder {
        private static MyF instance = new MyF();
    }

    private MyF() {
    }

    public static MyF newInstance() {
        return SingleHolder.instance;
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        binding = FragmentMyBinding.inflate(getLayoutInflater());

        AppCompatTextView tvTool = binding.tvTool;
        tvTool.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(requireContext(), StockToolA.class));
            }
        });
        return binding.getRoot();
    }
}
